package com.ruoyi.system.domain;

import com.ruoyi.common.annotation.Excel;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.base.BaseEntity;

import java.util.Date;

/**
 * 商品主属性表 goodmain
 * 
 * @author chengenjiang
 * @date 2019-07-16
 */
public class Goodmain extends BaseEntity
{
	private static final long serialVersionUID = 1L;
	
	/** 商品主属性表ID */
	@Excel(name = "商品主属性表ID")
	private Integer goodmainId;
	/** 商品信息ID */
	private Integer goodsinfoId;
	/** 商品主属性名称 */
	@Excel(name = "商品主属性名称")
	private String name;
	/** 创建时间 */
	@Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss", type = Excel.Type.EXPORT)
	private Date createTime;
	/** 修改时间 */
	@Excel(name = "修改时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss", type = Excel.Type.EXPORT)
	private Date updateTime;
	/** 扩展字段 */
	@Excel(name = "备注")
	private String attribute;

	public void setGoodmainId(Integer goodmainId) 
	{
		this.goodmainId = goodmainId;
	}

	public Integer getGoodmainId() 
	{
		return goodmainId;
	}
	public void setGoodsinfoId(Integer goodsinfoId) 
	{
		this.goodsinfoId = goodsinfoId;
	}

	public Integer getGoodsinfoId() 
	{
		return goodsinfoId;
	}
	public void setName(String name) 
	{
		this.name = name;
	}

	public String getName() 
	{
		return name;
	}

	public void setAttribute(String attribute) 
	{
		this.attribute = attribute;
	}

	public String getAttribute() 
	{
		return attribute;
	}
	@Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("goodmainId", getGoodmainId())
            .append("goodsinfoId", getGoodsinfoId())
            .append("name", getName())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("attribute", getAttribute())
            .toString();
    }


	public Date getCreateTime() {
		return createTime;
	}


	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}


	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}
}
